﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace FennecUI
{
    /// <summary>
    /// Interaction logic for AppletTitleBar.xaml
    /// </summary>
    public partial class AppletTitleBar : UserControl
    {
        public AppletTitleBar()
        {
            InitializeComponent();
        }

        public string Text{
            get{
                return (string)TitleText.Content;
            }
            set{
                TitleText.Content = value;
            }
        }

        private bool _fullMode;
        public bool FullMode
        {
            get
            {
                return _fullMode;
            }
            set
            {
                if (value)
                {
                    _fullMode = true;
                    FullModeBtn.Source = leaveFullMode_bmp;
                }
                else
                {
                    _fullMode = false;
                    FullModeBtn.Source = enterFullMode_bmp;
                }
            }
        }

        private BitmapImage enterFullMode_bmp = new BitmapImage(new Uri(@"/FennecUI;component/Assets/EnterFullMode.png", UriKind.Relative));
        private BitmapImage leaveFullMode_bmp = new BitmapImage(new Uri(@"/FennecUI;component/Assets/LeaveFullMode.png", UriKind.Relative));
    }
}
